package com.unohacha.qqj.fzdr.util;

import android.app.Activity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.lzy.imagepicker.loader.ImageLoader;



public class GlideImageLoaderForPicker implements ImageLoader {
 //   RequestOptions mOptions;

    @Override
    public void displayImage(Activity activity, String path, ImageView imageView, int width, int height) {
//        mOptions = new RequestOptions()
//                 //   .placeholder(R.mipmap.default_banners)
//                //     .error(R.mipmap.default_banners)
//                .fitCenter();
        Glide.with(activity)
                .load(path)
              //  .apply(mOptions)
                .into(imageView);
    }

    @Override
    public void displayImagePreview(Activity activity, String path, ImageView imageView, int width, int height) {

    }

    @Override
    public void clearMemoryCache() {

    }
}